package com.ycky.utils;

import java.util.function.Function;

/**
 * @description:
 * @author: cjj
 * @time: 2025/3/18 17:25
 */
public class DataUtil {
    /**
     * @description: 泛型方法：接收任意类型 T，处理后返回 R
     * @author: cjj
     * @date: 2025/3/18 17:27
     * @param: [input, func]
     **/
    public static <T, R> R process(T input, Function<T, R> func) {
        return func.apply(input);
    }
}